const http = uni.$u.http

// 二手车列表
export const carList = ( data ) => {
	return http.post(`/index.php?_mall_id=1&r=api/car-secondhand/list&page=${data.page}&city=${data.city}&brand_id=${data.brand_id}&price=${data.price}&search=${data.search}`, data )
}

//二手车详情
export const carDetail = (data) => {
	return http.get('/index.php?_mall_id=1&r=api/car-secondhand/detail', {params:data})
}

//品牌列表
export const getBrand = (data) => {
	return http.get('/index.php?_mall_id=1&r=api/car/brand', {params:data})
}

//城市列表
export const getCity = (data) => {
	return http.get('/index.php?_mall_id=1&r=api/default/district', {params:data})
}

//根据字母排序品牌
export const letterBrand = (data) => {
	return http.get('/index.php?_mall_id=1&r=api/car/letter-brand', {params:data})
}
